function expandCollapse (e) {
  if (ie) e = window.event;
  var node = e.srcElement;
  while (node.parentNode.nodeType != 1 &&
    ("p" + node.parentNode.id) != node.id)
      node = node.parentNode;
  var div_id = node.parentNode.id;
  expandCollapseItem (div_id);
}

function expandCollapseItem (div_id) {
  //alert (div_id);
  var idiv = document.getElementById("i" + div_id);
  if (idiv.style.display != "none") {
    //Collapse
    idiv.style.display = 'none';
    document.getElementById("p" + div_id).src = imgroot + "/plus.gif";
  }
  else {
    idiv.style.display = 'block';
    document.getElementById("p" + div_id).src = imgroot + "/minus.gif";
    if (idiv.isLoaded == 0) {
      //alert(idiv.subHref);
  		//window.open(idiv.subHref, "as", "");
  		loadXMLFile(div_id, idiv.subHref, 1);
  	}
  }
}

function expandCollapseItem_Par (div_id, parameter) {
  //alert (div_id);
  var idiv = document.getElementById("i" + div_id);
  idiv.style.display = 'block';
  document.getElementById("p" + div_id).src = imgroot + "/minus.gif";
  link = idiv.subHref
  if (idiv.isLoaded == 0) {
    link = link + "&" + parameter;
    //alert(link);
    loadXMLFile(div_id, link, 1);
  }
}